package com.tianji.learning.service;

import com.tianji.api.dto.trade.OrderBasicDTO;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.dto.LearningPlanDTO;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author yang
 * @since 2024-06-20
 */
public interface ILearningLessonService extends IService<LearningLesson> {
    //添加用户课程
    void addUserLessons(Long userId, List<Long> courseIds);
    //分页查询学生课程表
    PageDTO<LearningLessonVO> PageAll(PageQuery pageQuery);
    //查询当前正在学习的课程
    LearningLessonVO getNowLesson();
    //退课
    void refundUserLessons(List<Long> courseIds);
    //查询课程是否有效
    Long getLessonId(Long courseId);

    LearningLessonVO getLessonStatus(Long courseId);

    Integer countLearningLessonByCourse(Long courseId);

    void createPlans(LearningPlanDTO planDTO);

    LearningPlanPageVO queryMyPlans(PageQuery pageQuery);
}
